﻿using Entity.Models.dto;
using Entity.Models.Entities;
using Entity.Models.vo;
using System;
using System.Collections.Generic;
using System.Text;

namespace IBLL
{
    /// <summary>
    /// 耗材分类BLL接口
    /// </summary>
    public interface ICategoryBLL
    {

        /// <summary>
        /// 耗材分类数据列表、搜索
        /// </summary>
        /// <param name="CategoryName">耗材分类名称</param>
        /// <param name="page">页数</param>
        /// <param name="limit">数据条数</param>
        /// <returns></returns>
        public List<CategoryDTO> getcategoryList(string CategoryName, string page, string limit, out int cont);

        /// <summary>
        /// 添加耗材分类
        /// </summary>
        /// <param name="category"></param>
        /// <returns></returns>
        bool AddCategory(Category category);

        /// <summary>
        /// 删除耗材分类
        /// </summary>
        /// <param name="categoryId"></param>
        /// <returns></returns>
        bool DalateCategory(string categoryId);

        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="categoryIds">耗材分类id</param>
        /// <returns></returns>
        bool DalateCategoryList(List<String> categoryIds);

        /// <summary>
        /// 修改耗材分类信息
        /// </summary>
        /// <param name="category"></param>
        /// <returns></returns>
        bool UpdataCategory(Category category);

        /// <summary>
        /// 根据耗材分类id搜索
        /// </summary>
        /// <param name="categoryid">耗材分类id</param>
        /// <returns></returns>
        Category getByCategory(string categoryid);


        /// <summary>
        /// 耗材分类下拉框
        /// </summary>
        /// <returns></returns>
        List<CategoryDTO> getCategorySelect();

    }
}
